/**
 * 日志记录实例
 *
 * @author bian
 * @createDate 2016.8.20
 *
 * @example
 * logger.error("error");
 */
var log4js = require("log4js");
var config = require("../conf/config");
log4js.configure({
    appenders : [
        {type : "console"},
        { type : "file", filename : config.log.toString()}
    ]
});
var logger = log4js.getLogger("xueban3");
// logger.setLevel("ERROR");
module.exports = logger;